<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2021/3/24 0024
 * Time: 14:27
 */

namespace app\admin\model;


use think\facade\Db;
use think\Model;

class GoodsProp extends Model{
    public static  function getPropList($where,$findId)
{
    $plist = GoodsProp::where($where)
        ->where(function ($query) use ($findId){
            $query->whereOr($findId);
        })
        ->paginate([
            'list_rows'=> 5,//每页数量
            'query' => request()->param(),
        ]);
    return $plist;
}
}


